package org.iweb.html.impl.basic;

import org.iweb.html.api.AbstractHtmlElement;

public class Input extends AbstractHtmlElement {

	private static final long serialVersionUID = 7643829974871374183L;
	public static final String TYPE_TEXT="text";
	public static final String TYPE_CHECKBOX="checkbox";
	public static final String TYPE_HIDDEN="hidden";
	public static final String TYPE_PASSWORD="password";
	public static final String TYPE_SUBMIT="submit";
	public static final String TYPE_FILE = "file";
	
	private String type;
	private String name;
	private String value;
	
	public Input(String type,String name,String value) {
		setType(type);
		setName(name);
		setValue(value);
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
		addAttr("value", value);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
		addAttr("type", type);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
		addAttr("name", name);
	}
	
	

}
